import fetch from '../utils/fetch.js';

// 获取banner
const getBanner = 'getBanner';
// 获取用户列表
const getUserListSy = 'getUserListSy';
// 获取我的关注列表
const getMyLikeList = 'getMyLikeList';
// 获取我关注的列表
const getLikeMeList = 'getLikeMeList';






class HomeService {

	// 获取banner
	async bannerService(data) {
		const bannerdata = await fetch(getBanner, data);
		return bannerdata
	}

	// 获取用户列表
	async userListSyService(data) {
		const listData = await fetch(getUserListSy, data);
		return listData
	}

	// 获取我的关注列表
	async myLikeListService(data) {
		const listData = await fetch(getMyLikeList, data);
		return listData
	}

	// 获取我关注的列表
	async likeMeListSyService(data) {
		const listData = await fetch(getLikeMeList, data);
		return listData
	}

}

export default new HomeService()
